package dominio;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import chiaviComposte.CommentoPK;

@Entity
@IdClass(CommentoPK.class)
@Table(name="commento")
public class Commento implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id private int idBase;
	@Id private int progressivo;
	    private String mitComm;
	    private Date dataComm;
	    private String testoComm;
	
	@Column(name="idBase")
	public int getIdBase() {
		
		return idBase;
		
	}
	
	public void setIdBase(int idBase) {
		
		this.idBase = idBase;
		
	}
	
	@Column(name="progressivo")
	public int getProgressivo() {
	
		return progressivo;
	
	}
	
	public void setProgressivo(int progressivo) {
	
		this.progressivo = progressivo;
	
	}
	
	@Column(name="mitcomm")
	public String getMittente() {
	
		return mitComm;
	
	}
	
	public void setMittente(String mitComm) {
	
		this.mitComm = mitComm;
	
	}
	
	@Column(name="datacomm")
	public Date getDataInvio() {
	
		return dataComm;
	
	}
	
	public void setDataInvio(Date dataComm) {
	
		this.dataComm = dataComm;
	
	}
	
	@Column(name="testocomm")
	public String getTesto() {
	
		return testoComm;
	
	}
	
	public void setTesto(String testoComm) {
	
		this.testoComm = testoComm;
	
	}

}
